# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=flare-engine
pkgver=1.11
pkgrel=1
pkgdesc="Free/Libre Action Roleplaying Engine"
url="http://www.flarerpg.org/"
arch="all"
license="GPL-3.0-only"
depends="sdl2_image sdl2_mixer sdl2_ttf hicolor-icon-theme"
makedepends="cmake make sdl2_image-dev sdl2_mixer-dev sdl2_ttf-dev"
options="!check" # make check not implemented
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/flareteam/flare-engine/archive/v$pkgver.tar.gz"

build() {
	 cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBINDIR=bin \
		-DDATADIR=share/flare
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="1a210a9ce1812458faafc7ceadfdb69dfb2f70b785f93b7bc698b72b6305e8a3b268d53b085544ac54868e895cce6872abf9cb22389ed1280a27ca46bdb9ec3b  flare-engine-1.11.tar.gz"
